<include file="public/min-header"/>
<div class="wrapper">
  <include file="public/breadcrumb"/>
  <section class="content" style="padding:0px 15px;">
    <!-- Main content -->
    <div class="container-fluid">
      <div class="pull-right">
        <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>
      </div>
      <div class="panel panel-default">
        <div class="panel-body ">
          <!--表单数据-->
          <form method="post" id="handlepost" action="{:U('Voucher/set_add')}">
            <div class="tab-content" style="padding:20px 0px;">
              <div class="tab-pane active" id="tab_tongyong">
                <table class="table table-bordered">
                  <tbody>

                  <tr>
                    <td>限制使用张数：</td>
                    <td>
                      <input type="number" class="form-control" name="num" value="{$num}" >
                    </td>
                  </tr>
                  </tbody>
                  <tfoot>
                  <tr>
                    <td></td>
                    <td class="text-right"><input class="btn btn-primary" type="button" onclick="adsubmit()" value="保存"></td></tr>
                  </tfoot>
                </table>
              </div>
            </div>
          </form><!--表单数据-->
        </div>
      </div>
    </div>
  </section>
</div>
<script>
  function adsubmit(){
    $('#handlepost').submit();
  }
  function goset(obj){
    window.location.href = $(obj).attr('data-url');
  }
</script>
</body>
</html>